package com.tbvtc.agriculturalcreditchainserver2025.constant;

public class RedisConstant {
    public static final String ADMIN_LOGIN_PREFIX = "admin:login:";
    public static final long  FOOD_TIME= 60;
    public static final String APP_LOGIN_PREFIX = "app:login:";
    public static final Integer APP_LOGIN_CODE_RESEND_TIME_SEC = 60;
    public static final Integer APP_LOGIN_CODE_TTL_SEC = 60 * 10 ;
    public static final String APP_ROOM_PREFIX = "admin:food:";
    public static final String CROP_PEST_PREFIX = "admin:pest";
    //区块高度
    public static final String BLOCK_NUMBER_KEY = "block:number";
    public static final Long BLOCK_NUMBER_TIME = 60L;
    //交易回执
    public static final String BLOCK_TR_KEY = "block::tr";
    public static final String DELAY_QUEUE_KEY = "delay:task";
    public static final String TASK_DATA_KEY = "order:";
    public static final Long CACHE_NULL_TTL = 2l;
    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final String LOCK_FOOD_KEY = "lock:food:";
    public static final String SMART_SOCKETS_TOKEN = "smartToken";
    //优惠券库存
    public static final String COUPON_STOCK_KEY = "coupon:stock:";
    //农作物阶段类型
    public static final String CROP_STAGE_TYPE = "crop:stage:type:";
    public static final String PEST_LOCK = "pest:lock:";
    public static final String PEST_IMAGE = "pest:image:";
    public static final String APP_LOGIN = "app:login:";


    public static final String WEATHER_KEY = " app:weather";
    public static final long WEATHER_TIME = 30;
    public static final String CHAT_SNAPSHOT_KEY_PREFIX = "chat:snapshot:";
    public static final String CHAT_MESSAGE_COUNT_KEY = "message:count:";
}
